package HomeWork;

import java.util.Scanner;

public class Zs {

    public static void main(String[] args) {
        System.out.println("请输入一个数");
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int count = 0;
            while (a > 0) {
                a = a / 10;
                count++;
            }
            System.out.println(a+"是" + count + "位数");
    }
}

